package com.estun.backroundManagementService.domain.factoryMes.request;


import com.alibaba.fastjson.JSON;
import lombok.Data;

@Data
public class AgvAutomaticFeedingRequest {
    private Body body;
    private String factoryCode;
    private String interfaceCode;
    private String mesUrl;
    private String mesVersion;
    private String remote;
    private String serviceId;
    private long timer;
    private String type;
    private String uuid;

    // 重写toString方法，使用Fastjson将对象转为JSON字符串
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    @Data
    public static class Body {
        private String toPointCode;
        private String materialCode;

        // 重写toString方法，使用Fastjson将对象转为JSON字符串
        @Override
        public String toString() {
            return JSON.toJSONString(this);
        }
    }
}
